package com.darren.euc.dao.impl;


import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.darren.euc.dao.ContractDao;
import com.darren.euc.entity.Contract;


@Repository
public class ContractDaoImpl extends BaseDaoImpl<Contract, Integer> implements ContractDao {
	
	@Override
	public List<Contract> getAll() {
		Session session = sessionFactory.getCurrentSession();	
		@SuppressWarnings("unchecked")
		List<Contract> clues = session.createQuery("from Contract where enable = true").list();
		return clues;
	}


}